package com.cetcs.kmga.dataManager.entity.logManager.vo;

import java.util.List;

/**
 * 日志记录表
 *
 * @author xutao
 * @version V1.0 创建时间：2017-09-11 16:05
 *          Copyright 2017 by CETC
 */
public class LogTbVo {

    private int id;

    /**
     * 英文表名
     */
    private String enName;

    /**
     * 中文表名
     */
    private String cnName;

    /**
     * 数据库名
     */
    private String indexName;

    /**
     * rowkey的字段
     */
    private String rowKeyField;

    /**
     *唯一编码
     */
    private String code;

    /**
     * rowKey的字段长度
     */
    private Integer rowKeyLength;

    /**
     * 是否分表：1分表；0：不分表
     */
    private Integer isSub;

    /**
     * 分表规则：1：按天分；2、按月分；3：按年分
     */
    private Integer subRule;
    /**
     * 表包含的字段
     */
    private List<LogTbFieldVo> fields;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Integer getIsSub() {
        return isSub;
    }

    public void setIsSub(Integer isSub) {
        this.isSub = isSub;
    }

    public Integer getSubRule() {
        return subRule;
    }

    public void setSubRule(Integer subRule) {
        this.subRule = subRule;
    }

    public String getRowKeyField() {
        return rowKeyField;
    }

    public void setRowKeyField(String rowKeyField) {
        this.rowKeyField = rowKeyField;
    }

    public Integer getRowKeyLength() {
        return rowKeyLength;
    }

    public void setRowKeyLength(Integer rowKeyLength) {
        this.rowKeyLength = rowKeyLength;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getEnName() {
        return enName;
    }

    public void setEnName(String enName) {
        this.enName = enName;
    }

    public String getCnName() {
        return cnName;
    }

    public void setCnName(String cnName) {
        this.cnName = cnName;
    }

    public String getIndexName() {
        return indexName;
    }

    public void setIndexName(String indexName) {
        this.indexName = indexName;
    }

    public List<LogTbFieldVo> getFields() {
        return fields;
    }

    public void setFields(List<LogTbFieldVo> fields) {
        this.fields = fields;
    }
}
